package com.spdg.ring;

import android.webkit.WebView;
import android.widget.TextView;

import com.spdg.ring.datamgr.MenuDataMgr;

/**
 * <p>Title: 关于界面 </p>
 * <p>Description:  </p>
 * <p>@author: caijj                </p>
 * <p>Copyright: Copyright (c) 2012    </p>
 * <p>Company: HX Co., Ltd.          </p>
 * <p>Create Time: 2012-10-22             </p>
 * <p>Update Time:                     </p>
 * <p>Updater:                         </p>
 * <p>Update Comments:                 </p>
 */
public class AboutActivity extends RingBaseActivity {

	private WebView mBrowser;
	private TextView mTitle;

	@Override
	protected void initComponents() {
		mBrowser = (WebView) findViewById(R.id.about_browser);
		
		mTitle = (TextView) findViewById(R.id.top_title);
	}

	@Override
	protected void initData() {
		mTitle.setText(R.string.about);
		
		String url = MenuDataMgr.getInstance().getAboutUrl(mContext);
		mBrowser.loadUrl(url);
	}

	@Override
	protected int getMainContentViewId() {
		return R.layout.act_about;
	}

	@Override
	protected Class<?> getResouceClass() {
		return R.class;
	}

	@Override
	protected String getEventID() {
		return getString(R.string.event_activity_about);
	}

}
